package com.sg.dto.biz.bff.common;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Objects;

/**
 * @desc BffWorkTaskSourceDto
 * @使用场景
 */
@Data
public class BffWorkTaskSourceDto implements Serializable {

    /**
     * 来源标识
     */
    @ApiModelProperty("来源标识")
    private String sourceCode;

    /**
     * 来源名称
     */
    @ApiModelProperty("来源名称")
    private String sourceName;

    /**
     * 来源类型
     */
    @ApiModelProperty("来源类型")
    private String sourceTypeCode;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        BffWorkTaskSourceDto that = (BffWorkTaskSourceDto) o;
        return sourceCode == that.sourceCode && sourceName == that.sourceName && sourceTypeCode == that.sourceTypeCode;
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), sourceCode, sourceName, sourceTypeCode);
    }

}
